package com.team5101.user.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.team5101.base.BaseServiceImpl;
import com.team5101.base.IBaseDao;
import com.team5101.entity.TUser;
import com.team5101.mapper.TUserMapper;
import com.team5101.user.api.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


//@Component
@Service
public class UserServiceImpl extends BaseServiceImpl<TUser> implements IUserService {

    @Autowired
    private TUserMapper mapper;


    @Override
    public IBaseDao<TUser> getBaseDao() {
        return mapper;
    }

    @Override
    public int deleteByPrimaryKey(Long sId) {
        return mapper.deleteByPrimaryKey(sId);
    }

    @Override
    public int insert(TUser record) {
        return mapper.insert(record);
    }

    @Override
    public int insertSelective(TUser record) {
        return mapper.insertSelective(record);
    }

    @Override
    public TUser selectByPrimaryKey(Long sId) {
        return mapper.selectByPrimaryKey(sId);
    }

    @Override
    public int updateByPrimaryKeySelective(TUser record) {
        return mapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TUser record) {
        return mapper.updateByPrimaryKey(record);
    }
}
